package com.meituan.sdk.model.pms.reservation.queryRoomRentSurchargeRule;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 查询接待单房费加收规则
* This file was automatically generated.
*/
@ApiMeta(
    path = "/pms/reservation/queryRoomRentSurchargeRule",
    businessId = 57,
    apiVersion = "10051",
    apiName = "query_room_rent_surcharge_rule",
    needAuth = true
)
public class QueryRoomRentSurchargeRuleRequest implements MeituanRequest<QueryRoomRentSurchargeRuleResponse> {
    /**
    * <p data-diff-id="ct-diff-id-8ba2f933-ab00-4724-9a08-e88e60389c72">酒店ID</p>
    */
    @NotNull(message = "hotelId不能为空")
    @SerializedName("hotelId")
    private Long hotelId;
    /**
    * <p data-diff-id="ct-diff-id-19b2d2e3-f93d-47a8-99b0-c19bb792f16a">接待单ID</p>
    */
    @NotEmpty(message = "checkinIds不能为空")
    @SerializedName("checkinIds")
    private List<Long> checkinIds;

    public Long getHotelId() {
        return hotelId;
    }
    public void setHotelId(Long hotelId) {
        this.hotelId = hotelId;
    }
    public List<Long> getCheckinIds() {
        return checkinIds;
    }
    public void setCheckinIds(List<Long> checkinIds) {
        this.checkinIds = checkinIds;
    }


    @Override
    public MeituanResponse<QueryRoomRentSurchargeRuleResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<QueryRoomRentSurchargeRuleResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "QueryRoomRentSurchargeRuleRequest{" + "hotelId=" + hotelId + "," + "checkinIds=" + checkinIds + "}";
    }
}
